package controlLayer;
import modelLayer.*;
import java.util.*;

public class StaffController
{
    private StaffContainer staffContainer;
    
    public StaffController(){
    staffContainer = StaffContainer.getInstance();
    }
    
   public Staff findStaffByUserName(String username){
		ArrayList<Staff> staffs = StaffContainer.getInstance().getAllStaff();
		for(Staff s : staffs){
			if(s.getUsername().equals(username))
				return s;
		}
		return null;
	}
    
    

   
    
   
}
